// 判断当前浏览器是否是在ios下打开运行的
export const isIos = () => /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent);

// 判断当前浏览器是否是在安卓下打开运行的
export const isAndroid = () => /(Android)/i.test(navigator.userAgent);

export const isString = val => typeof val === 'string';
export const isNumber = val => typeof val === 'number';
export const isSymbol = val => typeof val === 'symbol';
export const isObject = val => val !== null && typeof val === 'object';
export const isArray = val => Array.isArray(val);
